package chuishop.yiqimaicai.mapper;

import chuishop.yiqimaicai.pojo.GoodsInfo;

import java.util.List;

public interface GoodsInfoMapper {

    /**
     * 查询所有商品详情
     * @return
     */
    List<GoodsInfo> findAllGoodsInfo();

    /**
     * 根据输入的商品名查询
     * @return
     */
    List<GoodsInfo> selectGoodsInfoByName(String input);

    /**
     * 添加商品详情
     * @param goodsInfo
     * @return
     */
    int addGoodsInfo(GoodsInfo goodsInfo);

    /**
     * 删除商品详情
     * @param ids
     * @return
     */
    int deleteGoodsInfo(String[] ids);

    /**
     * 更新商品详情
     * @param goodsInfo
     * @return
     */
    int updateGoodsInfo(GoodsInfo goodsInfo);

}
